﻿using System;
using System.Net;

namespace Airport
{
    public class Vehicle
    {

        private int _vehicleId;
        private Node _location;
        private VehicleType _vehicleType;

        public Vehicle()
            : this(-1, new Node(), new VehicleType())
        {
        }

        public Vehicle(int inVehicleId, Node inLocation, VehicleType inVehicleType)
        {
            _vehicleId = inVehicleId;
            _location = inLocation;
            _vehicleType = inVehicleType;
        }

        public int vehicleId
        {
            get
            {
                return _vehicleId;
            }

            set
            {
                if (_vehicleId != value)
                {
                    _vehicleId = value;
                }
            }
        }

        public Node location
        {
            get
            {
                return _location;
            }

            set
            {
                if (_location != value)
                {
                    _location = value;
                }
            }
        }
 
        public VehicleType vehicleType
        {
            get
            {
                return _vehicleType;
            }

            set
            {
                if (_vehicleType != value)
                {
                    _vehicleType = value;
                }
            }
        }
    }
}
